package com.yjhb.android.sbz.activity;

import android.widget.FrameLayout;

import com.yjhb.android.sbz.R;
import com.yjhb.android.sbz.activity.rule.RuleRewardActivity;
import com.yjhb.android.sbz.fragment.reward.FragmentPromotionReward;
import com.jojo.android.zxlib.base.mvp.BasePresenter;
import com.jojo.android.zxlib.tool.ZxActivityTool;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * 创建者 zx
 * 创建时间 2021/1/15 9:39
 */
public class PromotionRewardActivity extends BaseActivity {
    private final String TAG = "PromotionRewardActivity";
    @BindView(R.id.back)
    FrameLayout back;

    FragmentPromotionReward fragmentPromotionReward;

    @Override
    protected boolean isCheckLogin() {
        return true;
    }

    @Override
    protected BasePresenter initPresenter() {
        return null;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.activity_promotion_reward;
    }

    @Override
    protected void initUI() {
//        fragments.clear();
//        fragments.add(fragmentPromotionReward = new FragmentPromotionReward());
//        fragments.add(fragmentMakeMoneyReward = new FragmentMoneyMakeReward());
//        fragments.add(fragmentGameReward = new FragmentGameReward());
//        segmentTabLayout.setTabData(titles);
//        segmentTabLayout.setIndicatorColor(getResources().getColor(R.color.red_68));
//        viewpager.setAdapter(new FragmentAdapter(getSupportFragmentManager(), fragments));
        fragmentPromotionReward = new FragmentPromotionReward();
        getSupportFragmentManager().beginTransaction()
                .replace(R.id.content_layout, fragmentPromotionReward)
                .commit();
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void regEvent() {

    }


    @OnClick(R.id.back)
    void back() {
        finish();
    }

    @OnClick(R.id.title_right_tv)
    void title_right_tv() {
        ZxActivityTool.skipActivity(this, RuleRewardActivity.class);
    }

}
